<%--
  Created by IntelliJ IDEA.
  User: qintao30057
  Date: 2018/1/26
  Time: 9:17
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
    <title>项目管理</title>
    <%@ include file="../common/meta.jsp" %>
    <link href="${ctx}/css/page/common-list.css?t=${now}" rel="stylesheet">
    <link href="${ctx}/css/page/common-search.css?t=${now}" rel="stylesheet">
    <style>
    </style>
    <script>
        var defIsvInfo = ${defIsvInfo};
    </script>
</head>
<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="tabs-container">
        <ul class="nav nav-tabs">
            <li class="active">
                <a href="${ctx}/basic/isvInfo/isvPage?isIsvBizExist=${not empty defIsvInfo ? defIsvInfo.isIsvBizExist : 1}" aria-expanded="true">服务商信息</a>
            </li>
            <c:if test="${not empty defIsvInfo && defIsvInfo.isIsvBizExist == 1}">
                <li class="">
                    <a href="${ctx}/basic/isvBiz/isvBizPage" aria-expanded="true">服务商业务</a>
                </li>
            </c:if>
        </ul>
        <div class="row">
            <div class="col-sm-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5><i class="fa fa-search"></i> 筛选查询</h5>
                    </div>
                    <div class="ibox-content ibox-content-search">
                        <form class="form-horizontal m-t" id="searchForm" novalidate="novalidate">
                            <div class="form-group">
                                <label class="col-sm-1 control-label">查询服务商：</label>
                                <div class="col-sm-5">
                                    <input type="text" name="isvName" onkeydown="if(event.keyCode==13){doRefresh();return false;}" id="isvName" class="form-control"  placeholder="输入服务商名称" maxlength="30"
                                           value="${not empty defIsvInfo ? defIsvInfo.searchKey : ''}">
                                </div>
                                <div class="ibox-tools ibox-tools-search">
                                    <button type="button" class="btn btn-primary btn-outline" onclick="doRefresh()">查询</button>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-sm-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5><i class="fa fa-table"></i> 服务商信息</h5>
                        <div class="ibox-tools col-sm-offset-2">
                            <c:if test="${userType == 'super' || not empty btnMap['addIsv']}">
                                <button class="btn btn-primary btn-outline" onclick="openAddIsvPage()">新增</button>
                            </c:if>
                            <c:if test="${userType == 'super' || not empty btnMap['editIsv']}">
                                <button class="btn btn-primary btn-outline" onclick="openEditIsvPage()">编辑</button>
                            </c:if>
                            <c:if test="${userType == 'super'}">
                                <button class="btn btn-primary btn-outline" onclick="doDeleteIsv()">删除</button>
                            </c:if>
                            <button class="btn btn-primary btn-outline" onclick="doRefresh()">刷新</button>
                            <c:if test="${userType == 'super' || not empty btnMap['exportIsv']}">
                                <button class="btn btn-primary btn-outline" onclick="doExport()">导出</button>
                            </c:if>
                        </div>
                    </div>
                    <div class="ibox-content">
                        <table class='table table-striped table-hover'
                               id="dataTable"  data-height="370"
                               data-toggle="table"
                               data-url="${ctx}/basic/isvInfo/pageFindIsvData?t=${now}"
                               data-pagination="true"
                               data-side-pagination="server"
                               data-striped="true"
                               data-response-handler="handleServerResult"
                               data-query-params-type=""
                               data-query-params="getParams"
                               data-page-number="${not empty defIsvInfo.pageNo ? defIsvInfo.pageNo : 1}"
                               data-page-size="${not empty defIsvInfo.pageSize ? defIsvInfo.pageSize : defaultPageSize}"
                               data-page-list="${pageList}">
                            <thead>
                            <tr>
                                <th data-field="id" data-visible="false">主键id</th>
                                <th data-field="isvPid" data-align="center" data-width="160px">服务商PID</th>
                                <th data-field="isvName" data-formatter="formatName" data-events="actionEvents" data-align="center">服务商名称</th>
                                <th data-field="contactPerson" data-align="center" data-width="100px">联系人</th>
                                <th data-field="contactPhone" data-align="center" data-width="120px">联系电话</th>
                                <th data-field="bdContact" data-align="center" data-width="150px">对接人（BD）</th>
                                <th data-field="creator" data-formatter="formatterCreator" data-align="center" data-width="90px">创建人</th>
                                <th data-field="operator" data-formatter="formatterOperator" data-align="center" data-width="90px">编辑人</th>
                            </tr>
                            </thead>
                        </table>
                    </div>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-sm-12">
                <div class="text-center">${companyName}</div>
            </div>
        </div>
    </div>
</div>
<script src="${ctx}/js/isv/isvMgr.js?t=${now}"></script>
</body>
</html>
